package be.rugbyclubleuven.rachel.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "PLOE")
public class Ploeg {

	@Id
	@Column(name = "PloId")
	private Long id;

	@Column(name = "Title")
	private String naam;
	@ManyToOne
	@JoinColumn(name = "CATID")
	private Categorie categorie;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getNaam() {
		return naam;
	}

	public Categorie getCategorie() {
		return categorie;
	}

}